#!/usr/bin/env python

from twisted.words.protocols import irc
from twisted.internet import reactor, protocol
from twisted.python import log

import time, sys

class MessageLogger:
    """
    An Independet logger class (becasue separation of application and protocol
    logic is good thing)
    """
    
    def __init__(self, file):
        self.file = file
    
    def log(self, message):
        """
        Write a message to the file
        """
        timestamp = time.strftime("[%H:%M:%S]", time.localtime(time.time()))
        self.file.write()